<%-- 
    Document   : logout
    Created on : 24 May, 2012, 7:35:17 PM
    Author     : bharat
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
try{

    String username = (String) session.getAttribute("usr");
    if (username!= null) {
        session.removeAttribute("usr");
        session.invalidate();        
        response.sendRedirect(".ind");

    } 
   /* else {
        out.println("You are not logged in <a href=\"two.jsp\">Back</a>");
        
               } */
       }catch(Exception e){
           out.println(e.getMessage());
       }
%>